package com.vallis.asfc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author vallis
 * @since 2020-08-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class JoinMatchTeam extends Model<JoinMatchTeam> {

    private static final long serialVersionUID = 1L;

    /**
     * 参赛队伍id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 队伍名称
     */
    private String teamName;

    /**
     * 领队
     */
    private String master;

    /**
     * 单位名称
     */
    @TableField(exist = false)
    private String orgName;
    /**
     * 会员单位id
     */
    private Long orgId;

    /**
     * 人数
     */
    private Integer userNum;

    /**
     * 删除状态
     */
    @TableLogic
    private Integer deleted;

    /**
     * 1审核通过0审核未通过
     */
    private Integer confirm;

    /**
     * 1审核通过0审核未通过
     */
    private Integer cpuConfirm;

    /**
     * 管理员意见
     */
    private String adminOption;

    /**
     * 机审意见
     */
    private String cpuOption;

    /**
     * 团队成绩
     */
    private Integer teamScore;

    /**
     * 团队排名
     */
    private Integer teamRank;

    /**
     * 参赛队伍的参赛id
     */
    private Long joinMatchId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
